﻿<UserControl
    x:Class="CeBIT2010.CebitAgendaItem"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Height="80"
    xmlns:my="clr-namespace:TheOliver.DigitalSignage.Common;assembly=TheOliver.DigitalSignage.Common"
    Width="504">
    <UserControl.Resources>
        <my:TimeConverter
            x:Key="_timeConverter" />
        <my:ImageConverter
            x:Key="_imageConverter" />
    </UserControl.Resources>
    <Grid
        x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition
                Width="96" />
            <ColumnDefinition />
            <ColumnDefinition
                Width="80" />
        </Grid.ColumnDefinitions>
        <Image
            Grid.ColumnSpan="3"
            Margin="-11,0,-9,0"
            Source="Assets/BIEB_Zettel.png"
            Stretch="Fill">
            <Image.Effect>
                <DropShadowEffect
                    Opacity="0.64" />
            </Image.Effect>
        </Image>
        <TextBlock
            x:Name="_time"
            Margin="8,0"
            TextWrapping="Wrap"
            Text="{Binding SlotTime, ConverterParameter=HH:mm, Converter={StaticResource _timeConverter}}"
            DataContext="{Binding}"
            VerticalAlignment="Center"
            d:LayoutOverrides="Width"
            FontSize="18.667" HorizontalAlignment="Right" />
        <TextBlock
            x:Name="_sessionTitle"
            Margin="8,0,0,0"
            TextWrapping="Wrap"
            Text="{Binding SessionShortTitle}"
            DataContext="{Binding}"
            d:LayoutOverrides="Height"
            Grid.Column="1"
            HorizontalAlignment="Left"
            VerticalAlignment="Center"
            FontSize="18.667" />
        <StackPanel
            x:Name="_speakerName"
            Margin="0,0,8,0"
            Orientation="Horizontal"
            Grid.Column="1"
            HorizontalAlignment="Right"
            d:LayoutOverrides="Height"
            VerticalAlignment="Center">
            <TextBlock
                x:Name="_speakerFirstname"
                TextWrapping="Wrap"
                Text="{Binding SpeakerFirstname}"
                DataContext="{Binding}"
                d:LayoutOverrides="Width"
                FontSize="18.667"
                Margin="0,0,8,0"
                HorizontalAlignment="Right"
                VerticalAlignment="Center" />
            <TextBlock
                x:Name="_speakerLastName"
                TextWrapping="Wrap"
                Text="{Binding SpeakerLastname}"
                DataContext="{Binding}"
                d:LayoutOverrides="Width"
                Margin="4,0,0,0"
                FontSize="18.667" />
        </StackPanel>
        <Image
            x:Name="_speakerImage"
            Source="{Binding SpeakerImageData, Converter={StaticResource _imageConverter}}"
            Margin="8,10,8,14"
            Grid.Column="2"
            HorizontalAlignment="Left" />

    </Grid>
</UserControl>
